package com.sharemarking.wa.platform.dto.orderDriver;


import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * @author dxy
 */
public class DeliveryInfo {
    @JsonIgnore
    private String name;
    private Double realWeight;
    private String picList;
    private String wasteName;
    private Double weight;
    private String pic;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getRealWeight() {
        if (realWeight != null) {
            return (int)(realWeight * 0.001);
        }
        return null;
    }

    public void setRealWeight(Double realWeight) {
        this.realWeight = realWeight;
    }

    public String[] getPicList() {
        if (picList != null) {
            return picList.split(",");
        }
        return null;
    }

    public void setPicList(String picList) {
        this.picList = picList;
    }

    public String getWasteName() {
        return wasteName;
    }

    public void setWasteName(String wasteName) {
        this.wasteName = wasteName;
    }

    public Integer getWeight() {
        if (weight != null) {
            return (int)(weight * 0.001);
        }
        return null;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }
}
